package com.jk.lyt.controller;

import com.jk.lyt.pojo.UserBean;
import com.jk.lyt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/abc")
public class UserController {

    @Autowired
    private UserService userService;






    @RequestMapping("/log")
    public String log(UserBean bean){
        return userService.log(bean);
    }


    @RequestMapping("/Register")
    public void Register(UserBean bean){
        userService.Register(bean);
    }
}


